package com.mt.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mt.VO.SelectSeatVO;
import com.mt.VO.FilmScheduleInfoVO;
import com.mt.pojo.CinemaSchedule;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author Wang
 * @since 2020-12-11
 */
public interface CinemaScheduleService extends IService<CinemaSchedule> {
    List<CinemaSchedule> batchInsertSchedule(List<CinemaSchedule> scheduleList);

    IPage<FilmScheduleInfoVO> pageScheduleByCinema(int currentPage, int pageSize, int cinemaId, String filmName);
    boolean modifySchedule(CinemaSchedule schedule);

    boolean deleteSchedule(int scheduleId);

    List<FilmScheduleInfoVO> listScheduleByFilm(int filmId, int cinemaId, String queryTime);

    List<CinemaSchedule> listScheduleByHall(int hallId,String scheduleDate);

    boolean checkHallAvailable(String scheduleDate, String start, String end, int hallId);

    FilmScheduleInfoVO getScheduleDetailInfo(int scheduleId);

    SelectSeatVO getScheduleSeatsDetail(@Param("scheduleId") int scheduleId);

    public boolean checkScheduleExpire(int scheduleId);

//    List<String> getScheduleDateList();

}
